<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <!-- number修饰符 -->
        <input type="text" v-model.number="num" >
        <!-- trim修饰符 -->
        <p>
            用户名：
            <input type="text" v-model.trim="username">
        </p>
        <!-- lazy修饰符 -->
        <p>
            密码：
            <input type="text" v-model.lazy="pass">
        </p>
    </div>
</body>

</html>
<script src="./js/vue2.js"></script>
<script>


    let vm = new Vue({
        el: "#app",
        data: {
           num:3,
           username:"",
           pass:""
        }
    });

</script>